﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using GBits.ContactUtilites;

namespace GBits.ContactManager
{
    public partial class frmContact : Form
    {
        public frmContact()
        {
            InitializeComponent();
            this.Text = "New Contact Information";
        }

        public frmContact(MyContact c)
        {
            //TODO: Fix this
            InitializeComponent();
            this.Text = c.FirstName + " " + c.MiddleName + " " + c.LastName;
            this.ContactCard.SetContactCard(c);
            //this.ContactCard = new ucContact(c);
        }

        public frmContact(string filename)
        {
            InitializeComponent();
            MyContact c = DataAccess.GetData().GetContact(filename);
            this.Text = c.FirstName + " " + c.MiddleName + " " + c.LastName;
            this.ContactCard.SetContactCard(c);
            //this.Text = Title;
        }

        public void RestoreSize()
        {
            this.Width = 536;
            this.Height = 316;
            //536, 316
        }

        private void frmContact_Load(object sender, EventArgs e)
        {

        }

    }
}
